clear
// Save year of  birth
use "/data/rawdata/cleaned/yearofbirth"
save "/home/projects/cedsei/data/rawdata/yearofbirth", replace

// Save RAMS, LISAind and LISAfek
foreach num of numlist 1985(1)2018 {
	clear
	use "/data/rawdata/cleaned/jobb_`num'"
	save "/home/projects/cedsei/data/rawdata/jobb_`num'", replace
	
	if `num'>2013 {
		clear
		use 	lopnr year loneink akassa sun2000niva_old ///
			kommun alosdag *ssyk* ///
		using "/data/rawdata/cleaned/lisa_ind_`num'"
		save "/home/projects/cedsei/data/rawdata/lisa_ind_`num'", replace	
	}
	
	if inrange(`num',2000,2013) {
		clear
		use 	lopnr year loneink akassa sun2000niva_old fodelsemanad ///
			kommun alosdag  ///
		using "/data/rawdata/cleaned/lisa_ind_`num'"
		save "/home/projects/cedsei/data/rawdata/lisa_ind_`num'", replace	
		
	}
}

// Save unemployment data (sokatper)
clear
use "/data/rawdata/dtafiles/DS_Lev_Sokatper"
save "/home/projects/cedsei/data/rawdata/DS_Lev_Sokatper", replace

// Save data on gender
clear
use "/data/rawdata/cleaned/gender"
save "/home/projects/cedsei/data/rawdata/gender", replace
